<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
	<title>公章卫士管理平台</title>
   <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>登录</title>
    <link rel="stylesheet" href="/asset/layui/css/layui.css">
    <link rel="stylesheet" href="/asset/css/index.css?v=80909">
    <script type="text/javascript" src="/asset/js/jquery-3.3.1.min.js"></script>
    <script src="/asset/layui/layui.js" charset="utf-8"></script>
</head>
<body class="layui-layout-body login_body">
<div class="login_box">
    <div class="login_bg"><img src="/asset/images/logo.jpg" alt=""></div>
    <div class="flesx">
    		<form method="post" class="layui-form" >
        <div class="login_form">
            <h4 class="login_title">管理员登录</h4>
            <input type="text" name="username" value="admin" lay-verify="required" placeholder="请输入登录账户" class="input_top adminbox">
            <input type="password" name="password" value="111111" lay-verify="required" placeholder="请输入密码" class="input_top passwordbox">
            <div class="posireletave"><input type="text" name="authcode" autocomplete="off" class="input_top imgbox" placeholder="图形验证码"> <img src="/kaptcha.htm" onclick="this.src='/kaptcha.htm?r='+Math.random()" alt="" class="tephone_img"></div>
            <input type="submit" lay-submit lay-filter="login" value="登&nbsp;&nbsp;&nbsp;&nbsp;录" class="button_box">
        </div>
        </form>
    </div>
</div>

<script>
    $(function  () {
        layui.use('form', function(){
          var form = layui.form;
          //监听提交
          form.on('submit(login)', function(data){
               
      		$.ajax({
      			type:"POST", 
      			url:"/admin/signin.htm",
      			data:data.field ,
      			success:function(result) {
		      
		      		if(result.code=='1'){
		      		
		      			layer.msg('登录成功');
		                location.href='/admin/index.htm'
		      			
		      		}else{
		      		 	layer.msg(result.msg);
		      		}
		      
		    	 	} 
		    }); 
          
            return false;
          });
        });
    })
</script>
</body>
</html>